﻿@model IEnumerable<ThesisSystem.Models.GClass>

@{
    ViewBag.Title = "Index";
}

<table>
    <tr>
        <th>
            班级
        </th>
        <th>
            年级
        </th>
        <th>
            系部
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ClassName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Grade)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Department.DepartmentName)
        </td>
        <td>
            @Html.ActionLink("修改", "Edit", new { id=item.ClassID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ClassID })
        </td>
    </tr>
}

</table>
